﻿@using Telerik.Web.Mvc.UI;
@using Telerik.Web.Mvc;
<!DOCTYPE html>
<html>
<head>
    <title>@ViewBag.Title</title>
    <link href="@Url.Content("~/Content/Site.css")" rel="stylesheet" type="text/css" />
    <script src="@Url.Content("~/Scripts/jquery-1.5.1.min.js")" type="text/javascript"></script>
    <script src="@Url.Content("~/Scripts/jquery.validate.js")" type="text/javascript"></script> 
    <script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.js")" type="text/javascript"></script> 
    <script type="text/javascript">
        $(document).ready(function () {
            setMenu('@ViewContext.RouteData.Values["controller"]');
        });

        function setMenu(controller) {
            var x = $("ul#menu a").filter(function () { return $(this).text() == controller; }).parent("li").addClass("current");
        }
    </script>
</head>
<body>
    <div id="content-wrapper">
        <header class="main">
            <div id="logo">
                <a href="/">iSahitHotel</a>
            </div>
            <div class="user-display">
                @Html.Partial("_LogonPartial")
            </div>
        </header>
        <nav class="main">
                <ul id="menu">
                    <li>@Html.ActionLink("Home", "Index", "Home")</li>
                    <li>@Html.ActionLink("Record", "Index", "Record")</li>
                    <li>@Html.ActionLink("Room", "Index", "Room")</li>
                </ul>
            </nav>
        <div id="body" role="main">
            @RenderBody()
        </div>
    </div>
    <div class="group" id="layout-footer">
        <footer id="footer">
      <ul class="recommended">
      </ul>
      <div class="license">
      </div>
      </footer>
    </div>
    @(Html.Telerik().StyleSheetRegistrar()
        .DefaultGroup(group => group
            .Add("telerik.common.min.css")
            .Add("telerik.vista.min.css")
            .Add("telerik.rtl.min.css")
            //uncomment the lines below in order to combine and compress CSS files
            //.Combined(true)
            //.Compress(true)
            ))
    @(Html.Telerik().ScriptRegistrar()
            .jQuery(false)
            .jQueryValidation(false)
            )
</body>
</html>
